package com.scwatch.core.service;

import com.scwatch.common.orm.RowSide;
import com.scwatch.core.domain.Program;
import com.scwatch.core.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import java.util.List;
import java.util.Map;

/**
 * Created by rh006 on 2017/7/21.
 */
public interface ProgramService {


    public Page<Program> findAll(Map<String, String[]> params,
                                 Pageable pageable);

    public RowSide<Program> findSide(Map<String, String[]> params,
                                     Program bean, Integer position, Sort sort);

   /* public List<Program> getList();*/

    public Program get(Integer id);

   /* public String replace(String s);*/

    public Program save(Program bean, Integer siteId, User user);

    public Program update(Program bean);

    public Program delete(Integer id);

    public Program[] delete(Integer[] ids);


    public List<Program> findAll();

}
